package com.glSto.rep;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class ResponseData {
    private Collection collection;
    private Page page;
    private List<Queries> queries;
    private List<Templates> templates;

    @Data
    public static class Collection {
        private String version;
        private String href;
        private List<?> links;
        private List<Items> items;

        @Data
        public static class Items {
            private String href;
            private String rel;
            private String rt;
            private List<Data> data;
            private List<?> links;

            @lombok.Data
            public static class Data {
                private String name;
                @JsonProperty("value")
                private String value;
            }
        }
    }

    @Data
    public static class Page {
        private List<Data> data;

        @lombok.Data
        public static class Data {
            private String name;
            @JsonProperty("value")
            private String value;
        }
    }

    @lombok.Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Queries {

    }

    @lombok.Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Templates {

    }
}